package com.jhw.ymcc.feign;

import com.jhw.doc.CourseDoc;
import com.jhw.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author jhw
 * @create 2022/10/12
 */
@FeignClient(value = "service-search", fallbackFactory = SearchServicefallbackFactory.class)
public interface SearchService {
    @PostMapping("/course/saveCourseEs")
    JSONResult saveCourseEs(@RequestBody CourseDoc courseDoc);

    @DeleteMapping("/course/delCourseEs")
    JSONResult delCourseEs(@RequestBody CourseDoc courseDoc);
}
